#include "StdAfx.h"
#include "ExporterFactory.h"

CFileExporterFactory::CFileExporterFactory(void)
{
}

CFileExporterFactory::~CFileExporterFactory(void)
{
}


void CFileExporterFactory::Initialize()
{

}

CFileExporter* CFileExporterFactory::Create(const CString& szId)
{
	CFileExporter* pFileExporter = CreateObject(szId);
	return pFileExporter;
}

//////////////////////////////////////////////////////////////////////////

CRegFileExporterHelper::CRegFileExporterHelper(const CString& guid, CFileExporterCreator* pCreator)
:m_Guid(guid)
{
	Register(pCreator);
}

CRegFileExporterHelper::~CRegFileExporterHelper()
{
	//GetEditorFactory().UnRegisterObject(m_Guid);
}

void CRegFileExporterHelper::Register(CFileExporterCreator* pCreator)
{
	bool bResult = GetFileExporterFactory().RegisterObject(m_Guid, pCreator);
	ASSERT(bResult);
}